package cc.linker.steplink.crm.service.impl;

import cc.linker.steplink.crm.dao.MarketRobotDao;
import cc.linker.steplink.crm.domain.RobotDynamicPo;
import cc.linker.steplink.crm.service.IMarketRobotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MarketRobotServiceImpl implements IMarketRobotService {

    @Autowired
    private MarketRobotDao marketRobotDao;

    @Override
    public Boolean addMarketRobotList(Map<String,String> param){
        return marketRobotDao.addMarketRobotList(param);
    }

    @Override
    public Boolean delConpose(Map<String, String> param) {
        return marketRobotDao.delConpose(param);
    }

    @Override
    public List<Map<String, String>> getMarketRobotList(Map<String,Object> param){
        return marketRobotDao.getMarketRobotList(param);
    }

    @Override
    public List<Map<String, String>> getComposeInfo(String composeId) {
        return marketRobotDao.getComposeInfo(composeId);
    }

    @Override
    public String getComposeStatus(String composeId){
        return marketRobotDao.getComposeStatus(composeId);
    }

    @Override
    public Boolean setComposeStatus(Map<String,String> param){
        return marketRobotDao.setComposeStatus(param);
    }

    @Override
    public void setGoodsArticle(String articleId){
        marketRobotDao.setGoodsArticle(articleId);
    }

    @Override
    public List<Map<String, String>> getOrgIdByNameAndValue(Map<String,String> param){
        return marketRobotDao.getOrgIdByNameAndValue(param);
    }

    @Override
    public List<Map<String, String>> getAllUnsendRobotArticles(Map<String,String> param){
        return marketRobotDao.getAllUnsendRobotArticles(param);
    }

    @Override
    public Map<String, String> getUnsendRobotArticles(Map<String,String> param){
        return marketRobotDao.getUnsendRobotArticles(param);
    }

    @Override
    public List<Map<String, String>> getCustomerByRand(Map<String,Object> param){
        return marketRobotDao.getCustomerByRand(param);
    }

    @Override
    public void doneRobotArticle(String articleId){
        marketRobotDao.doneRobotArticle(articleId);
    }

    @Override
    public List<Map<String, String>> getlabelIds(String orgId){
        return marketRobotDao.getlabelIds(orgId);
    }

    @Override
    public Map<String,String> getOneArticle(String labelId, String orgId, String token, String openid){
        return marketRobotDao.getOneArticle(labelId,orgId,token,openid);
    }

    @Override
    public Map<String,Object> getPushLog(String token, String openid, String pushType){
        return marketRobotDao.getPushLog(token,openid,pushType);
    }

    @Override
    public void savePushLog(Map<String,String> param){
        marketRobotDao.savePushLog(param);
    }

    @Override
    public List<RobotDynamicPo> getRobotDynamicList(Map<String, Object> param){
        return marketRobotDao.getRobotDynamicList(param);
    }

    @Override
    public List<Map<String, Object>> getActiveChart(String orgId){
        return marketRobotDao.getActiveChart(orgId);
    }

    @Override
    public List<String> getLocalArticleIds(String orgId) {
        return marketRobotDao.getLocalArticleIds(orgId);
    }

    @Override
    public int countArticleByArticleIds(List<String> articleIds,String orgId){
        return marketRobotDao.countArticleByArticleIds(articleIds,orgId);
    }

    @Override
    public List<String> getLabelNameByIds(List<String> labelIds){
        return marketRobotDao.getLabelNameByIds(labelIds);
    }

    @Override
    public int countComposeByName(String composeName, String orgId){
        return marketRobotDao.countComposeByName(composeName,orgId);
    }
}
